// 导入request.js请求工具
import request from '@/utils/request.js'
// 登录相关接口

// 获取短信验证码的接口
export const sendMsgApi = (phone) => {
    return request.post('/user/sendMsg', phone)
}

// 用户登录接口
export const userLoginApi = (userData) => {
    return request.post('/user/login', userData);
}

// 后台登录接口
export const backendLoginApi = (backendData) => {
    return request.post('/employee/login', backendData)
}

// 用户登出接口
export const userLogoutApi = (userData) => {
    return request.post('/user/loginout', userData);
}

// 后台登出接口
export const backendLogoutApi = (userInfo) => {
    return request.post('/employee/logout', userInfo)
}
